package com.njit.mailm.core.bean;

import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;


public class User implements Serializable {
	@NotEmpty(message="用户名不能为空")
	private String username;
	
	@NotEmpty(message = "请输入密码")
	private String password;
	
	@NotEmpty(message = "请确认密码")
	private String repeat;
	
	@NotEmpty(message = "请输入电子邮箱地址")
	@org.hibernate.validator.constraints.Email(message="您输入的电子邮箱地址不正确")
	private String email;

	private String id;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRepeat() {
		return repeat;
	}
	public void setRepeat(String repeat) {
		this.repeat = repeat;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "User{" +
				"username='" + username + '\'' +
				", password='" + password + '\'' +
				", repeat='" + repeat + '\'' +
				", email='" + email + '\'' +
				", id='" + id + '\'' +
				'}';
	}
}
